#! /usr/bin/env python

import sqlite3

class SQLConn:
	def __init__ (self, DB_File):
		self.db = sqlite3.connect(DB_File).cursor()

	def create_table (self , Table , Attr):
		self.db.execute ("CREATE TABLE %s %s" % (Table , Attr) )

	def insert2table (self , Table , Vals):
		self.db.execute ("INSERT into %s VALUES %s" % (Table , Vals) )

	def select_data (self , Table , Vals , Where , Order):
		self.db.execute ("SELECT %s FROM %s WHERE %s %s" % (Vals, Table , Where , Order) )

